package com.chengyu.eyc.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "eyc_ad_info")
public class EycAdInfo extends BaseModel implements Serializable {
    @Id
    @Column(name = "AD_INFO_ID")
    private String adInfoId;

    /**
     * 广告发行人.表eyc_insp_stationhe 或eyc_merchants_file的ID
     */
    @Column(name = "ISSUER")
    private String issuer;

    /**
     * 所在页面：首页、附近、、爱车、订单完成页
     */
    @Column(name = "PAGE_INDEX")
    private String pageIndex;

    /**
     * 标题
     */
    @Column(name = "TITLE")
    private String title;

    /**
     * 子标题
     */
    @Column(name = "SUB_TITLE")
    private String subTitle;

    /**
     * 发布时间
     */
    @Column(name = "PUBLISH_DT")
    private Date publishDt;

    /**
     * 下架日期。无下架日期，表示永久有效
     */
    @Column(name = "WITHDRAW_DT")
    private Date withdrawDt;

    /**
     * 配图
     */
    @Column(name = "PICTURE_URL")
    private String pictureUrl;

    /**
     * 明细链接
     */
    @Column(name = "URL")
    private String url;

    /**
     * 逻辑删除
     */
    private Boolean deleted;

    /**
     * 内容
     */
    @Column(name = "CONTENT")
    private String content;

    private static final long serialVersionUID = 1L;

    /**
     * @return AD_INFO_ID
     */
    public String getAdInfoId() {
        return adInfoId;
    }

    /**
     * @param adInfoId
     */
    public void setAdInfoId(String adInfoId) {
        this.adInfoId = adInfoId == null ? null : adInfoId.trim();
    }

    /**
     * 获取广告发行人.表eyc_insp_stationhe 或eyc_merchants_file的ID
     *
     * @return ISSUER - 广告发行人.表eyc_insp_stationhe 或eyc_merchants_file的ID
     */
    public String getIssuer() {
        return issuer;
    }

    /**
     * 设置广告发行人.表eyc_insp_stationhe 或eyc_merchants_file的ID
     *
     * @param issuer 广告发行人.表eyc_insp_stationhe 或eyc_merchants_file的ID
     */
    public void setIssuer(String issuer) {
        this.issuer = issuer == null ? null : issuer.trim();
    }

    /**
     * 获取所在页面：首页、附近、、爱车、订单完成页
     *
     * @return PAGE_INDEX - 所在页面：首页、附近、、爱车、订单完成页
     */
    public String getPageIndex() {
        return pageIndex;
    }

    /**
     * 设置所在页面：首页、附近、、爱车、订单完成页
     *
     * @param pageIndex 所在页面：首页、附近、、爱车、订单完成页
     */
    public void setPageIndex(String pageIndex) {
        this.pageIndex = pageIndex == null ? null : pageIndex.trim();
    }

    /**
     * 获取标题
     *
     * @return TITLE - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取子标题
     *
     * @return SUB_TITLE - 子标题
     */
    public String getSubTitle() {
        return subTitle;
    }

    /**
     * 设置子标题
     *
     * @param subTitle 子标题
     */
    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle == null ? null : subTitle.trim();
    }

    /**
     * 获取发布时间
     *
     * @return PUBLISH_DT - 发布时间
     */
    public Date getPublishDt() {
        return publishDt;
    }

    /**
     * 设置发布时间
     *
     * @param publishDt 发布时间
     */
    public void setPublishDt(Date publishDt) {
        this.publishDt = publishDt;
    }

    /**
     * 获取下架日期。无下架日期，表示永久有效
     *
     * @return WITHDRAW_DT - 下架日期。无下架日期，表示永久有效
     */
    public Date getWithdrawDt() {
        return withdrawDt;
    }

    /**
     * 设置下架日期。无下架日期，表示永久有效
     *
     * @param withdrawDt 下架日期。无下架日期，表示永久有效
     */
    public void setWithdrawDt(Date withdrawDt) {
        this.withdrawDt = withdrawDt;
    }

    /**
     * 获取配图
     *
     * @return PICTURE_URL - 配图
     */
    public String getPictureUrl() {
        return pictureUrl;
    }

    /**
     * 设置配图
     *
     * @param pictureUrl 配图
     */
    public void setPictureUrl(String pictureUrl) {
        this.pictureUrl = pictureUrl == null ? null : pictureUrl.trim();
    }

    /**
     * 获取明细链接
     *
     * @return URL - 明细链接
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置明细链接
     *
     * @param url 明细链接
     */
    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    /**
     * 获取逻辑删除
     *
     * @return deleted - 逻辑删除
     */
    public Boolean getDeleted() {
        return deleted;
    }

    /**
     * 设置逻辑删除
     *
     * @param deleted 逻辑删除
     */
    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    /**
     * 获取内容
     *
     * @return CONTENT - 内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置内容
     *
     * @param content 内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", adInfoId=").append(adInfoId);
        sb.append(", issuer=").append(issuer);
        sb.append(", pageIndex=").append(pageIndex);
        sb.append(", title=").append(title);
        sb.append(", subTitle=").append(subTitle);
        sb.append(", publishDt=").append(publishDt);
        sb.append(", withdrawDt=").append(withdrawDt);
        sb.append(", pictureUrl=").append(pictureUrl);
        sb.append(", url=").append(url);
        sb.append(", deleted=").append(deleted);
        sb.append(", content=").append(content);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}